<?php

namespace HelloWeb\UserBundle\Entity;

use Library\BaseEntity;
use Doctrine\ORM\Mapping as ORM;

/**
 * HelloWeb\UserBundle\Entity\Role
 *
 * @ORM\Table(name="hw_roles")
 * @ORM\Entity
 */
class Role extends BaseEntity
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="bigint")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;
    
    /**
     * @var string $title
     *
     * @ORM\Column(name="title", type="string", length=100, nullable=false)
     */
    private $title;

    public function getId()
    {
        return $this->id;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getTitle()
    {
        return $this->title;
    }

    public function setTitle(string $title)
    {
        $this->title = $title;
        return $this;
    }

}
